• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Changing header size on "old" magazine theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Changing header size on "old" magazine theme

This topic is: not resolved

Tagged: header, Header size, magazine, magazine theme

  • This topic has 15 replies, 2 voices, and was last updated 13 years, 6 months ago by Brad Dalton.
Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • February 14, 2013 at 4:20 am #20271
    R29
    Member

    Dear reader,

     

    I am running my site http://www.datingsite-ervaringen.nl on the "old" magazine theme (not on Genesis). I would like to change the header size, which is now 960x175 to 960x100 or so.

    Unfortunately, when I change the CSS code:

    #header {

    background: #111111 url(images/header.png);
    width: 960px;
    height: 175px;
    margin: 0px auto 0px;
    padding: 0px;
    overflow: hidden;
    }

    175px to 100px the header does seem smaller but the "pages" disapperar (home, niet tevreden?, blog, contact et cetera)

    I have no idea what to do. Can anyone help me please? Thanks in advance 🙂

    February 14, 2013 at 4:35 am #20274
    Brad Dalton
    Participant

    I don't have access to that theme but you can change the size in the child themes functions.php file.

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) );
    

    Tutorials for StudioPress Themes.

    February 14, 2013 at 4:39 am #20275
    R29
    Member

    Cheers BradDalton but I am not using Genesis + Child theme but the old magazine theme

    (I have changed too much to update to Genesis + magazine child theme Im afraid. Not sure what will still work and what not)

    February 14, 2013 at 4:52 am #20280
    Brad Dalton
    Participant

    No worries. You can still try this tutorial and add support for a custom header or change the sizes in your functions file. Can you send me the file please?


    Tutorials for StudioPress Themes.

    February 14, 2013 at 4:57 am #20281
    R29
    Member

    Great Brad, this is the content of theme functions.php, hope this is what you meant:

     

    February 14, 2013 at 5:00 am #20283
    Brad Dalton
    Participant

    Could you please paste this on Pastebin and delete this code here. Thanks


    Tutorials for StudioPress Themes.

    February 14, 2013 at 5:07 am #20284
    R29
    Member

    Sorry, I don't think I can delete that post. Hope this works:

    <script src="http://pastebin.com/embed_js.php?i=57UgXPCH"></script>

    February 14, 2013 at 5:44 am #20285
    R29
    Member

    cat_ID) { return $category->cat_name; break; }
    }
    }

    // Load the scripts
    if(get_theme_mod('subnav') == 'Yes') {
    wp_enqueue_script('subnav', get_bloginfo('template_url').'/js/subnav.js','','1.0',true);
    } else {
    wp_enqueue_script('nav', get_bloginfo('template_url').'/js/nav.js','','1.0',true);
    }
    if(get_theme_mod('tabber') == 'Yes') {
    wp_enqueue_script('tabber', get_bloginfo('template_url').'/js/tabber.js','','1.0',true);
    }

    // include the breadcrumb nav tool
    include(TEMPLATEPATH."/tools/breadcrumbs.php");

    // include the theme options
    include(TEMPLATEPATH."/tools/theme-options.php");

    if ( function_exists('register_sidebars') )
    register_sidebar(array('name'=>'Sidebar Right','before_title'=>'','after_title'=>''));

    function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    $content = strip_tags($content);

    if (strlen($_GET['p']) > 0) {
    echo "";
    echo $content;
    if ($more_link_text != '') {
    echo " ".__('Read More', 'studiopress')." →";
    }
    echo "";
    }
    else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
    $content = substr($content, 0, $espacio);
    $content = $content;
    echo "";
    echo $content;
    echo "...";
    if ($more_link_text != '') {
    echo " ".$more_link_text."";
    }
    echo "";
    }
    else {
    echo "";
    echo $content;
    if ($more_link_text != '') {
    echo " ".__('Read More', 'studiopress')." →";
    }
    echo "";
    }
    }

    function sp_widget() {
    require_once(ABSPATH.WPINC.'/rss.php');
    if ( $rss = fetch_rss( 'http://feeds2.feedburner.com/studiopress' ) ) {
    $content = '"';
    $content .= 'Upgrade now to the Pro Plus All-Theme package for only $140 --></a (Use PPUPG as the discount code when you are on the shopping cart page.)';
    $content .= '';
    foreach ( array_slice( $rss->items, 0, 5 ) as $item ) {
    $content .= '';
    $content .= '
    '.htmlentities( $item['title'] ).'';
    $content .= ' '.date('F j, Y',strtotime($item['published'])).'';
    $content .= ''.htmlentities( $item['summary'] ).'';
    $content .= '';
    }
    $content .= '';
    $content .= 'Subscribe to RSS  Subscribe via Email';
    $content .= '';
    echo $content;
    }
    }

    function sp_widget_setup() {
    wp_add_dashboard_widget( 'sp_db_widget' , 'The Latest News From StudioPress' , 'sp_widget');
    }

    add_action('wp_dashboard_setup', 'sp_widget_setup');

    // Remove WP Generator for security reasons
    remove_action('wp_head', 'wp_generator');
    ?>

    February 14, 2013 at 5:46 am #20286
    R29
    Member

    Im sorry I seem to fail badly 🙁

    February 14, 2013 at 6:09 am #20288
    Brad Dalton
    Participant

    Paste the text url to the pastebin page please. Not the html


    Tutorials for StudioPress Themes.

    February 14, 2013 at 6:22 am #20289
    R29
    Member

    I'm not sure what you mean I'm afraid...

    February 14, 2013 at 6:52 am #20291
    Brad Dalton
    Participant

    Add this to your child themes functions.php file

    /** Add support for custom header */
    add_theme_support( 'custom-header', array( 'width' => 960, 'height' => 100 ) );
    

    Tutorials for StudioPress Themes.

    February 14, 2013 at 7:36 am #20297
    R29
    Member

    Thnaks Brad, then it says this:
    Parse error: syntax error, unexpected 'add_theme_support' (T_STRING) in /home/reinoud/domains/datingsite-ervaringen.nl/public_html/wp-content/themes/magazine_10/functions.php on line 117

    February 14, 2013 at 8:06 am #20301
    Brad Dalton
    Participant
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) );
    

    Try this.


    Tutorials for StudioPress Themes.

    February 14, 2013 at 8:12 am #20302
    R29
    Member

    Thanks again Brad, but now it says:
    Parse error: syntax error, unexpected 'add_theme_support' (T_STRING) in /home/reinoud/domains/datingsite-ervaringen.nl/public_html/wp-content/themes/magazine_10/functions.php on line 116

    February 14, 2013 at 8:26 am #20303
    Brad Dalton
    Participant

    Because i don't have a copy of your child theme and it doesn't run on Genesis i am not sure i can help you with this unless you email me a full copy of the files.

    Not sure how it works if it doesn't run on Genesis.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 16 posts - 1 through 16 (of 16 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble